package com.wr.hangzhounewlight.controller.frontend;

import com.wr.hangzhounewlight.obj.dto.frontend.ChangeLogDTO;
import com.wr.hangzhounewlight.obj.dto.frontend.R;
import com.wr.hangzhounewlight.service.frontend.ChangeLogService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuanzhizhuo
 * createDate 2025/11/14
 */
@CrossOrigin
@RestController
public class ChangeLogController {

    private final ChangeLogService changeLogService;

    public ChangeLogController(ChangeLogService changeLogService) {
        this.changeLogService = changeLogService;
    }

    @PostMapping("/query-change-log")
    private R queryChangeLog(@RequestBody ChangeLogDTO dto) {
        return changeLogService.queryChangeLog(dto);
    }

}
